#include<stdio.h>
int main()
{
	double r1,r2;
	scanf("%lf%lf",&r1,&r2);
	double ans;
	ans=(r1*r2)/(r1+r2);
	printf("%.2lf",ans);
	return 0;
}
